package com.zucc.controller.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author : charspan
 * @Description :
 * @create : 2021-12-11 4:45 下午
 */
@Data
@ApiModel("修改新闻参数")
public class NewsModifyReq {

    @ApiModelProperty(value = "新闻编号", required = true)
    @NotNull(message = "新闻编号不能为空")
    private Long id;

    @ApiModelProperty(value = "通知发送方")
    private String sender;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "所属栏目编号")
    private Long topicId;

    @ApiModelProperty(value = "新闻标题")
    private String title;

    @ApiModelProperty(value = "是否为热点，0:否（默认），1:是")
    private Integer hot = 0;

    @ApiModelProperty(value = "阅读量--后门")
    private Integer count = 0;

    @ApiModelProperty(value = "排序")
    private Integer sort;

    @ApiModelProperty(value = "新闻内容")
    private String content;

}
